package com.local.videoplayer.app;

import android.app.Application;
import com.local.videoplayer.utils.FrescoUtil;

/**
 * Created by ccx on 17/3/20.
 */

public class MyApplication extends Application {

    private static MyApplication mInstance;
    public static MyApplication getInstance() {
        return mInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        CrashHandler myCrashHandler = CrashHandler.getInstance();
        myCrashHandler.init(getApplicationContext());
        Thread.currentThread().setUncaughtExceptionHandler(myCrashHandler);
        FrescoUtil.init(getApplicationContext(), 100);
    }


    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }

}
